package com.wujp.common.template.tools.enums;

/**
 * @desc: 模板配置
 * @author: wujp
 * @create: 2023-01-18 14:39
 */
public enum TemplateConfig {
    SERIAL_TEMPLATE("serial_template", "1", "com.wujp.common.template.tools.actuator.SerialTemplateActuator"),
    ;

    private String templateType;
    private String actuatorBeanType;
    private String actuatorBeanName;

    TemplateConfig(String templateType, String actuatorBeanType, String actuatorBeanName) {
        this.templateType = templateType;
        this.actuatorBeanType = actuatorBeanType;
        this.actuatorBeanName = actuatorBeanName;
    }


    public static TemplateConfig getTemplateConfigByTemplateType(String templateType) {
        for (TemplateConfig templateConfig : values()) {
            if (templateConfig.templateType.equals(templateType)) {
                return templateConfig;
            }
        }
        return null;
    }

    public String getTemplateType() {
        return templateType;
    }

    public String getActuatorBeanType() {
        return actuatorBeanType;
    }

    public String getActuatorBeanName() {
        return actuatorBeanName;
    }
}
